package zx.x.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.Query;

import zx.x.modules.sys.dao.WarehousingDao;
import zx.x.modules.sys.entity.WarehousingEntity;
import zx.x.modules.sys.service.WarehousingService;
import zx.x.modules.sys.vo.WarehousingVo;


@Service("warehousingService")
public class WarehousingServiceImpl extends ServiceImpl<WarehousingDao, WarehousingEntity> implements WarehousingService {
    @Autowired
    WarehousingDao d;
    @Override
    public List<WarehousingVo> queryList() {
        return d.queryList();
    }

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WarehousingEntity> page = this.page(
                new Query<WarehousingEntity>().getPage(params),
                new QueryWrapper<WarehousingEntity>()
        );

        return new PageUtils(page);
    }

}